from selenium.webdriver.common.by import By

from Base.base_page import AppBasePage


class SwipeRefreshPage(AppBasePage):
    def __init__(self):
        super().__init__()
        self.begin_element = (By.XPATH,'(//*[@resource-id="com.ss.android.article.news:id/akb"])[2]')
        self.end_element = (By.XPATH,'(//*[@resource-id="com.ss.android.article.news:id/akb"])[7]')
    def find_element_01(self):
       return self.find_element(self.begin_element)

    def find_element_02(self):
       return self.find_element(self.end_element)